﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Spire.Doc
{
    class Program
    {
        static void Main(string[] args)
        {
            CreateDocument("Invoice.docx");
        }
        public static void CreateDocument(string filepath)
        {
            Document document = new Document();
            Section section = document.AddSection();
            Documents.Paragraph para = section.AddParagraph();
            para.AppendText("SpireDoc");
            document.SaveToFile(filepath, FileFormat.Docx);
        }
    }
}
